package ZuoYe18;

import java.sql.SQLOutput;
import java.util.Scanner;

public class Di1 {
    public static void main(String[] args) {
        System.out.println("输入字符串");
        Scanner sc=new Scanner(System.in);
        String a = sc.next();
        System.out.println(a.replaceAll("[^0-9]",""));
    }
}
